﻿using System;
using System.Collections.Generic;
using Newtonsoft.Json.Linq;
using JsonCSharpClassGenerator;

namespace BEX.Core.Exchange.Coinbase
{
    public class CoinbaseResponse
    {
        public CoinbaseResponse(string json)
            : this(JObject.Parse(json))
        {
        }

        private JObject __jobject;
        public CoinbaseResponse(JObject obj)
        {
            this.__jobject = obj;
        }

        public string amount
        {
            get
            {
                return JsonClassHelper.ReadString(JsonClassHelper.GetJToken<JValue>(__jobject, "amount"));
            }
        }

        public string currency
        {
            get
            {
                return JsonClassHelper.ReadString(JsonClassHelper.GetJToken<JValue>(__jobject, "currency"));
            }
        }
    }
}
